package com.hzlx.mapper;/*
 *@author liu
 *2024/07/2024/7/25
 *@version
 */

import com.hzlx.entity.CustomerInfo;
import com.hzlx.entity.WithdrawalRecords;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;
import java.util.List;

public interface CustomerInfoMapper {

    CustomerInfo getAccountByUserNameAndPassword(@Param("userName") String userName, @Param("password") String password);

    int updateBalance(@Param("money") BigDecimal money, @Param("customerId") Integer customerId);

    @Select("select * from hzlx_customer_info where deleted = 1")
    List<CustomerInfo> getAll();

    WithdrawalRecords checkStatus(@Param("flowId") Integer flowId);

    CustomerInfo getByTel(String telNumber);
}
